Title Banner

Previous Book Contents Book Index Next

Inside Macintosh: QuickDraw GX Printing /
Chapter 3 - Page Formatting and Dialog Box Customization / Page Formatting and Dialog Box Customization Reference
Functions / Creating and Manipulating Format Objects


GXCopyFormat

You can use the GXCopyFormat function to create a copy of a format object.

gxFormat GXCopyFormat (gxFormat srcFormat, gxFormat dstFormat);
srcFormat
A reference to the source format object to copy.
dstFormat
A reference to the destination format object.
function result
A reference to a format object.
DESCRIPTION
The GXCopyFormat function copies the properties from the source format object into the destination object and returns a reference to the destination format object. If you specify nil for the dstFormat parameter, QuickDraw GX creates a format object to receive the properties.

RESULT CODES
gxSegmentLoadFailedErrA required code segment could not be found, or there was not enough memory to load it.
gxPaperTypeNotFoundThe paper-type object cannot be located.
SEE ALSO
Listing 3-14 on page 3-56 shows how to use the GXCopyFormat function to copy a format object's storage.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
7 JUL 1996




Navigation graphic, see text links

Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help